app_family.controller("controller_organizationinfo", function($scope, $rootScope, httpRequest, $location) {
    $rootScope.$broadcast('currentModule', 'controller_organizationinfo');
    $rootScope.$broadcast('footerFlag', false); // 是否显示底部导航

    /**
     * 判断是否用手机登录过
     */
    if (sessionStorage.getItem('data_sessionStorage')) {
        var familyPhone = JSON.parse(sessionStorage.getItem('data_sessionStorage')).familyInfo.phone;
        if (familyPhone == '' || familyPhone == null) {
            window.location.replace(basepath + 'login.html');
            return;
        }
    } else {
        window.location.replace(basepath + 'login.html');
        return;
    }

    /**
     * 根据服务机构Code，查询服务机构信息
     */
    data_sessionStorage = JSON.parse(sessionStorage.getItem('data_sessionStorage'));

    var data = {
        success: true,
        obj: {
            name: '润和软件',
            bed_number: 2354236,
            price_low: 0.1,
            price_high: 0.9,
            provinceName: '江苏',
            cityName: '南京',
            countyName: '雨花台区',
            address: '软件大道',
            tel: '8888888',
            intro: '无'
        }
    };
    if (data.success === true) {
        $scope.orgInfoObj = data.obj;
    } else if (data.success === false) {
        $.dialog.showToast({ msgTxt: data.msg });
    }

});